<?php
    $CI=& get_instance();
    $CI->load->model('pages_model');
?>
<div class="module">
    <div class="md-title">
        <h2>    
            Sản phẩm bán chạy
        </h2>
    </div>
    <div class="md-content">
        <div class="jscarouse-box">
            <div id="carouselv">
                <?php
                    foreach($CI->pages_model->get_product_best_seller(9) as $item):
                ?>
            		<div>
            			 <img alt="<?=$item['alias']?>" src="<?=base_url('data/images').'/'.$item['image']?>" onerror="defaultimg(this)" /><br />
            			 <span class="thumbnail-text"><a class="lk-prd" href="<?=site_url('product').'/'.$item['id'].'/'.$item['alias']?>"><?=$item['name']?></a></span>
                    </div>
                <?php
                    endforeach;
                ?>
        	</div>
        </div>
    </div>
</div>